package com.gary.demo.common.model;

import com.gary.demo.entity.User;
import org.springframework.stereotype.Component;

@Component
public class LoginHolder {


    /**
     * 获取当前登录用户
     * @return
     */
    public User currentUser() {
        User user = new User();
        user.setUserName("admin");
        user.setName("管理员");
        return user;
    }
}
